Skip to content

Conversation

madsmtm
Copy link

@madsmtm madsmtm commented Apr 19, 2025

Instead of the very verbose:

#[cfg(not(any(
   target_os = "ios",
   target_os = "watchos",
   target_os = "tvos",
   target_os = "visionos"
)))]

I suspect this is fine, as the macOS functionality is implemented using deprecated functions, and thus likely to also be unavailable if Apple decides to add a future platform.

CC @simlay.

Instead of the very verbose:

   #[cfg(not(any(
       target_os = "ios",
       target_os = "watchos",
       target_os = "tvos",
       target_os = "visionos"
   )))]
Copy link
Contributor

@simlay simlay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is definitely cleaner than what I had done in #294.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants